package com.mzy.basics.aop;

import java.util.ArrayList;
import java.util.stream.Collectors;

/**
 * @author Ives
 * * @date 2021/12/22
 */
public class test {
  public static void main(String[] args) {
    ArrayList<String> list = new ArrayList<>();
//    list.add("1");
//    list.add("2");
//    list.add("3");
    System.out.println(list);

    String collect = list.stream().map(String::valueOf).collect(Collectors.joining(","));
    System.out.println(collect);

  }
}
